package entity;

import java.io.Serializable;
import java.sql.Date;

public class Order implements Serializable{
	private Drug drug;
	private Customer customer;
	
	private int oid;
	private String did;
	private String dname;
	private int oquantity;
	private String oprice;
	private int cid;
	private String cname;
	private Date odate;
	
	
	public Drug getDrug() {
		return drug;
	}
	public void setDrug(Drug drug) {
		this.drug = drug;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public int getOid() {
		return oid;
	}
	public void setOid(int oid) {
		this.oid = oid;
	}
	public String getDid() {
		return did;
	}
	public void setDid(String did) {
		this.did = did;
	}
	public String getDname() {
		return dname;
	}
	public void setDname(String dname) {
		this.dname = dname;
	}
	public int getOquantity() {
		return oquantity;
	}
	public void setOquantity(int oquantity) {
		this.oquantity = oquantity;
	}
	public String getOprice() {
		return oprice;
	}
	public void setOprice(String oprice) {
		this.oprice = oprice;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	
	public Date getOdate() {
		return odate;
	}
	public void setOdate(Date odate) {
		this.odate = odate;
	}
	@Override
	public String toString() {
		return "Order [oid=" + oid + ", did=" + did + ", dname=" + dname + ", oquantity=" + oquantity + ", oprice="
				+ oprice + ", cid=" + cid + ", cname=" + cname + ", odate=" + odate + "]";
	}
	
	
	

}
